﻿using Newtonsoft.Json;
using System.Collections.Generic;
using ZZDingTalkSDK.ZZDingTalkRequest.Common;
using ZZDingTalkSDK.ZZDingTalkResponse;
using ZZDingTalkSDK.ZZDingTalkResponse.common;

namespace ZZDingTalkSDK.ZZDingTalkRequest
{
    /// <summary>
    /// 根据员工code获取员工的任职
    /// </summary>
    public class MoziEmployeeListEmployeePositionsByEmployeeCodeRequest : IZZDRequest<ZZDingTalkResponseContent<List<MoziEmployeeListEmployeePositionsByEmployeeCodeResponse>>>
    {
        /// <summary>
        /// 租户ID
        /// </summary>
        [JsonProperty("tenantId")]
        public string? TenantId { get; set; }
        /// <summary>
        /// 	员工code
        /// </summary>
        [JsonProperty("employeeCode")]
        public string? EmployeeCode { get; set; }
        /// <summary>
        /// 员工在组织内任职状态条件 A - 查询有效的数据 F - 查询无效的数据 TOTAL - 查询所有的数据 (默认)
        /// </summary>
        [JsonProperty("employeePositionStatus")]
        public string EmployeePositionStatus { get; set; } = "A";
        /// <summary>
        /// 所需员工任职类型，默认是主职 EMPLOYEE_POSITION_ALL - 所有 EMPLOYEE_POSITION_MAIN - 主职EMPLOYEE_POSITION_ADJUNCT - 非主职
        /// </summary>
        [JsonProperty("employeePositionType")]
        public string EmployeePositionType { get; set; } = "EMPLOYEE_POSITION_ALL";
        public string GetApiName()
        {
            return "/mozi/employee/listEmployeePositionsByEmployeeCode";
        }
    }
}
